<template>
  <div class="goods-list" v-if="Object.keys(good).length !== 0">
      <homegoods-item v-for= "item in good" :key="item.goodslabel" :goodsitem= "item">       
      </homegoods-item>
  </div>
</template>

<script>
import homegoodsItem from './HomegoodsItem.vue'
export default {
    name:'homegoods',
    props: {
        good:{
            type:Array,
            default(){
                return []
            }
        }
    },
    components: {
        homegoodsItem
    }
}
</script>

<style>
.goods-list {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		padding: 0 6px;
	}

</style>